Optimal. Leaf size=98 \[ \frac{d x \left (a^2 d^2-3 a b c d+3 b^2 c^2\right )}{b^3}+\frac{d^2 x^3 (3 b c-a d)}{3 b^2}+\frac{(b c-a d)^3 \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} b^{7/2}}+\frac{d^3 x^5}{5 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0594187, antiderivative size = 98, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {390, 205} \[ \frac{d x \left (a^2 d^2-3 a b c d+3 b^2 c^2\right )}{b^3}+\frac{d^2 x^3 (3 b c-a d)}{3 b^2}+\frac{(b c-a d)^3 \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} b^{7/2}}+\frac{d^3 x^5}{5 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 390
Rule 205
Rubi steps
\begin{align*} \int \frac{\left (c+d x^2\right )^3}{a+b x^2} \, dx &=\int \left (\frac{d \left (3 b^2 c^2-3 a b c d+a^2 d^2\right )}{b^3}+\frac{d^2 (3 b c-a d) x^2}{b^2}+\frac{d^3 x^4}{b}+\frac{b^3 c^3-3 a b^2 c^2 d+3 a^2 b c d^2-a^3 d^3}{b^3 \left (a+b x^2\right )}\right ) \, dx\\ &=\frac{d \left (3 b^2 c^2-3 a b c d+a^2 d^2\right ) x}{b^3}+\frac{d^2 (3 b c-a d) x^3}{3 b^2}+\frac{d^3 x^5}{5 b}+\frac{(b c-a d)^3 \int \frac{1}{a+b x^2} \, dx}{b^3}\\ &=\frac{d \left (3 b^2 c^2-3 a b c d+a^2 d^2\right ) x}{b^3}+\frac{d^2 (3 b c-a d) x^3}{3 b^2}+\frac{d^3 x^5}{5 b}+\frac{(b c-a d)^3 \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} b^{7/2}}\\ \end{align*}
Mathematica [A] time = 0.0659506, size = 92, normalized size = 0.94 \[ \frac{d x \left (15 a^2 d^2-5 a b d \left (9 c+d x^2\right )+3 b^2 \left (15 c^2+5 c d x^2+d^2 x^4\right )\right )}{15 b^3}+\frac{(b c-a d)^3 \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} b^{7/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 161, normalized size = 1.6 \begin{align*}{\frac{{d}^{3}{x}^{5}}{5\,b}}-{\frac{{d}^{3}{x}^{3}a}{3\,{b}^{2}}}+{\frac{{d}^{2}{x}^{3}c}{b}}+{\frac{{a}^{2}{d}^{3}x}{{b}^{3}}}-3\,{\frac{ac{d}^{2}x}{{b}^{2}}}+3\,{\frac{d{c}^{2}x}{b}}-{\frac{{a}^{3}{d}^{3}}{{b}^{3}}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}+3\,{\frac{{a}^{2}c{d}^{2}}{{b}^{2}\sqrt{ab}}\arctan \left ({\frac{bx}{\sqrt{ab}}} \right ) }-3\,{\frac{a{c}^{2}d}{b\sqrt{ab}}\arctan \left ({\frac{bx}{\sqrt{ab}}} \right ) }+{{c}^{3}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.69763, size = 613, normalized size = 6.26 \begin{align*} \left [\frac{6 \, a b^{3} d^{3} x^{5} + 10 \,{\left (3 \, a b^{3} c d^{2} - a^{2} b^{2} d^{3}\right )} x^{3} + 15 \,{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \sqrt{-a b} \log \left (\frac{b x^{2} + 2 \, \sqrt{-a b} x - a}{b x^{2} + a}\right ) + 30 \,{\left (3 \, a b^{3} c^{2} d - 3 \, a^{2} b^{2} c d^{2} + a^{3} b d^{3}\right )} x}{30 \, a b^{4}}, \frac{3 \, a b^{3} d^{3} x^{5} + 5 \,{\left (3 \, a b^{3} c d^{2} - a^{2} b^{2} d^{3}\right )} x^{3} + 15 \,{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \sqrt{a b} \arctan \left (\frac{\sqrt{a b} x}{a}\right ) + 15 \,{\left (3 \, a b^{3} c^{2} d - 3 \, a^{2} b^{2} c d^{2} + a^{3} b d^{3}\right )} x}{15 \, a b^{4}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.69904, size = 240, normalized size = 2.45 \begin{align*} \frac{\sqrt{- \frac{1}{a b^{7}}} \left (a d - b c\right )^{3} \log{\left (- \frac{a b^{3} \sqrt{- \frac{1}{a b^{7}}} \left (a d - b c\right )^{3}}{a^{3} d^{3} - 3 a^{2} b c d^{2} + 3 a b^{2} c^{2} d - b^{3} c^{3}} + x \right )}}{2} - \frac{\sqrt{- \frac{1}{a b^{7}}} \left (a d - b c\right )^{3} \log{\left (\frac{a b^{3} \sqrt{- \frac{1}{a b^{7}}} \left (a d - b c\right )^{3}}{a^{3} d^{3} - 3 a^{2} b c d^{2} + 3 a b^{2} c^{2} d - b^{3} c^{3}} + x \right )}}{2} + \frac{d^{3} x^{5}}{5 b} - \frac{x^{3} \left (a d^{3} - 3 b c d^{2}\right )}{3 b^{2}} + \frac{x \left (a^{2} d^{3} - 3 a b c d^{2} + 3 b^{2} c^{2} d\right )}{b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16894, size = 174, normalized size = 1.78 \begin{align*} \frac{{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \arctan \left (\frac{b x}{\sqrt{a b}}\right )}{\sqrt{a b} b^{3}} + \frac{3 \, b^{4} d^{3} x^{5} + 15 \, b^{4} c d^{2} x^{3} - 5 \, a b^{3} d^{3} x^{3} + 45 \, b^{4} c^{2} d x - 45 \, a b^{3} c d^{2} x + 15 \, a^{2} b^{2} d^{3} x}{15 \, b^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]